<?php 
/*
 module:		意见反馈
 create_time:	2024-03-13 13:38:25
 author:		
 contact:		
*/

namespace app\api\controller;

use app\api\service\FeedbackService;
use app\api\model\Feedback as FeedbackModel;
use think\exception\ValidateException;
use think\facade\Db;
use think\facade\Log;

class Feedback extends Common {

    /*start*/
	/**
	* @api {post} /Feedback/add 01、添加
	*/
	function add(){
		$postField = 'tel,feedback,infotype';
		$data = $this->request->only(explode(',',$postField),'post',null);
        $data["addtime"]=time();
        $data["audit"]=0;
		$res = FeedbackService::add($data);
		return $this->ajaxReturn($this->successCode,'操作成功',$res);
	}

	/**
	* @api {get} /Feedback/getConfig 02、获取配置
	*/
	function getConfig(){

		$res  =feedbackType();
		return $this->ajaxReturn($this->successCode,'返回成功',$res);
	}

    /*end*/

}

